package com.hntest.entity;
import org.apache.ibatis.type.Alias;
import java.io.Serializable;

@Alias("LoginInfo")//求你啦

public class Logininfo  implements Serializable {


    private static final long serialVersionUID = 1L;
    public final static int STATE_NORMAL = 0;
    public final static int STATE_LOCK = 1;
    public final static int STATE_LOGOFF = -1;

    private int lid;
    private String username;
    private String password;
    private Integer state = STATE_NORMAL;
    private Account account;
    private Userinfo userinfo;

    @Override
    public String toString() {
        return "Logininfo{" +
                "lid=" + lid +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", state=" + state +
                '}';
    }

    public Logininfo(int lid, String username, String password, Integer state, Account account, Userinfo userinfo) {
        this.lid = lid;
        this.username = username;
        this.password = password;
        this.state = state;
        this.account = account;
        this.userinfo = userinfo;
    }

    public  Logininfo(){};

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public static int getStateNormal() {
        return STATE_NORMAL;
    }

    public static int getStateLock() {
        return STATE_LOCK;
    }

    public static int getStateLogoff() {
        return STATE_LOGOFF;
    }

    public int getLid() {
        return lid;
    }

    public void setLid(int lid) {
        this.lid = lid;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Account getAccount() {
        return account;
    }

    public void setAccount(Account account) {
        this.account = account;
    }

    public Userinfo getUserinfo() {
        return userinfo;
    }

    public void setUserinfo(Userinfo userinfo) {
        this.userinfo = userinfo;
    }
}
